home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 112
/
112.d81
/
asm.drive check
< prev
next >
Wrap
Text File
|
2022-08-26
|
1KB
|
61 lines
tksa=$ff96
acptr=$ffa5
untlk=$ffab
talk=$ffb4
clrchn=$ffcc
chrout=$ffd2
*=$010b;$010b-$013e (267-318)
;is for cassette use
;and cannot be over-
;written by the stack.
;Routine stays in mem-
;ory even after compu-
;ter is reset.
jsrclrchn;clear i/o channels
lda$ba;decimal 186 is lo
;cation of device
;number
cmp #8
bcsokdevice;branch if device
;number is greater
;than or equal to 8
lda #8;these lines are
sta$ba ;equivalent to the
;BASIC line: dv=
;peek(186):if dv<8
;then dv=8
okdevice:jsrtalk;command a de-
;vice on serial
;bus to send
;data
lda#$6f;111 decimal=15
;(sec. addr.)+
;96 ($60)
sta $b9;185 decimal
;location of
;secondary addr.
jsr tksa;send a secon-
;dary addr. to
;a device com-
;manded to talk
lda #$0d;print a car-
;riage return
output: jsr chrout;display a byte
;in accumulator
;on screen
jsr acptr;input byte
;from serial
;bus
cmp #$0d;is it a car-
;riage return?
bne output;no, get ano-
;ther byte
jsr chrout
jmpuntlk;devices set to
;talk will stop
;sending data
rts
.end